<template>
<section class="address" v-if="companyInfo">
    <div class="wCen">
        <div class="address_box">
            <p class="titlePage">{{$t("exhibitor-detail-contact-t1")}}</p>
            <div class="boxPar">
                <div class="box">
                    <div class="txt" v-if="companyInfo.contactName">
                        <span class="txt_l">
                           {{$t("exhibitor-detail-contact-person")}}
                        </span>
                        <span class="txt_r">
                            {{companyInfo.contactName}}
                        </span>
                    </div>
                    <div class="txt" v-if="companyInfo.contactMobile">
                        <span class="txt_l">
                            {{$t("exhibitor-detail-contact-mobile")}}
                        </span>
                        <span class="txt_r">
                            {{companyInfo.contactMobile}}
                        </span>
                    </div>
                    <div class="txt" v-if="companyInfo.contactPhone">
                        <span class="txt_l">
                            {{$t("exhibitor-detail-contact-phone")}}
                        </span>
                        <span class="txt_r">
                            <a :href="'tel:'+companyInfo.contactPhone">{{companyInfo.contactPhone}}</a>
                        </span>
                    </div>
                    <div class="txt" v-if="companyInfo.contactFax">
                        <span class="txt_l">
                            {{$t("exhibitor-detail-contact-fax")}}
                        </span>
                        <span class="txt_r">
                            <a :href="'tel:'+companyInfo.contactFax">{{companyInfo.contactFax}}</a>
                        </span>
                    </div>

                    <div class="txt" v-if="companyInfo.contactEmail">
                        <span class="txt_l">
                            {{$t("exhibitor-detail-contact-email")}}
                        </span>
                        <span class="txt_r">
                            <a :href="'mailto:'+companyInfo.contactEmail" target="_blank" class="a">{{companyInfo.contactEmail}}</a>
                        </span>
                    </div>
                </div>
            </div>
        </div>
    </div>
</section>
</template>

<script>
export default {
    computed: {
        companyInfo() {
            return this.$store.state.seo.pageContent
        },
    },
    data() {
        return {};
    },
}
</script>

<style lang="scss" scoped>
// 地址
.address {
    padding: 50px 0 50px;

    .titlePage {
        margin-bottom: 70px;
        color: #fff;

        &::after {
            background: #fff;
        }
    }

    &_box {
        .boxPar {
            $w: 33%;
            display: flex;
            flex-wrap: wrap;

            .box {
                width: $w;
                padding-right: 20px;
                box-sizing: border-box;
                margin-bottom: 40px;

                .a {
                    &:hover {
                        opacity: 0.7;
                        color: #fff;
                    }
                }
            }
        }

        .txt {
            display: flex;
            align-items: center;
            margin-bottom: 25px;
            color: #fff;
            font-size: 18px;

            &_l {
                flex: 0 0 5em;
            }

            &_r {
                flex: auto;
            }
        }

        a {
            text-decoration: none
        }
    }
}
</style>

<style lang="scss" scoped>
@media (min-width:768px) and (max-width:1570px) {
    .address {
        .titlePage {
            margin-bottom: 40px;
        }

        &_box {
            .txt {
                font-size: 14px;
                margin-bottom: 15px;
            }
        }
    }
}
</style>

<style lang="scss" scoped>
@media (max-width:767px) {
    .address {
        padding: 20px 0 30px;

        .titlePage {
            margin-bottom: 30px;
        }

        &_box {
            .boxPar {
                $w: 100%;

                .box {
                    width: $w;
                    padding-right: 0px;
                    margin-bottom: 20px;
                }
            }

            .txt {
                font-size: 14px;
                margin-bottom: 15px;
            }
        }
    }
}
</style>
